<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>建议使用信管帮APP</title>
    <!-- 设计稿iPhone XR 414 html基础font-size=41.1px -->
    <!-- 该页面跳转缓慢，取消base64图片素材方法，采用webp图片素材格式 -->
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            height: 100%;
        }
        ul li{
            list-style: none;
        }
        a{
            text-decoration: none;
            
        }
        a:link{
            color: #404040;
        }
        a:visited{
            color: #404040;
        }
        a:hover{
            color: #404040;
        }
        a:active{
            color: #404040;
        }
        ::-webkit-scrollbar{
            /* width: 0; 移动端取消滚动条无效*/
            display: none;
        }
        body{
            background: #f4f4f4;/*#2493f1*/
            display: flex;
            flex-direction: column;
            font-family: 微软雅黑;
            font-size: .3865rem;
            letter-spacing: .0169rem;
            position: relative;
            overflow: hidden;/*禁止上下滑动*/
            -webkit-user-select:none;
            -moz-user-select:none;
            -ms-user-select:none;
            user-select:none;
        }
        
        section{/*
            border: 1px solid red;*/
            border-top-left-radius:  .3623rem;
            border-top-right-radius:  .3623rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        section ul:first-child{
            margin-top: .4831rem;
        }
        section .ul{
            /*
            border: 1px solid green;*/
            border-radius: .1932rem;
            overflow: hidden;
            width: 90%;
            margin: .2415rem 0;
            background: #FFF;
            font-size: .4348rem;
            box-shadow: .0725rem .0725rem .1208rem rgba(63, 63, 63, 0.075);
        }
        section .ul li{
            /*
            border: 1px solid red;*/
            width: 100%;
            height: 1.087rem;
            display: flex;
            flex-direction: row;
            justify-content: left;
            align-items: center;
            border-bottom: .0121rem solid rgba(142, 142, 142, 0.296);
            overflow: hidden;
            color: #404040;
        }
        section .ul li:last-child{
            border-bottom: none;
        }
        section .ul li a{
            all: unset;
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            box-sizing: border-box;
            padding: 0 .6039rem;
        }
        .ul li a div{
            /*
            border: 1px solid red;*/
        }
        .ul li a div:nth-child(2){
            font-size: .4106rem;
            color: #565656;
        }
        

        









        


        
    </style>
    <link rel="stylesheet" href="../../../css/header.css">
    <script src="../../../lib/jquery.min.js"></script>
    <script src="../../../lib/vue.js"></script>
    
</head>
<body>
    <header>
        <div class="backBtn"></div>
        <div class="left"></div>
        <span class="title">账号与安全</span>
    </header>
    <script>
        document.querySelector(".backBtn").onclick=function(){
            window.history.go(-1)
        }
    </script>
    <section>
            <ul class="ul ul1">
                <li>
                    <a>
                        <div>手机号</div>
                        <div>{{phone}}</div>
                    </a>
                </li>
                <li>
                    <a href="./yx.html">
                        <div>邮箱</div>
                        <div>{{mail}}</div>
                    </a>
                </li>
                <li>
                    <a href="./dlmm.html">
                        <div>登录密码</div>
                    </a>
                </li>
            </ul>
            <ul class="ul ul2">
                <li>
                    <a href="../bill/bill.html">
                        <div>我的订单</div>
                        <div class="realName"></div>
                    </a>
                </li>
                <li>
                    <a href="../smrz/smrz.html">
                        <div>身份信息</div>
                        <div class="realName"></div>
                    </a>
                </li>
                <li>
                    <a href="./dljl.html">
                        <div>登录记录</div>
                    </a>
                </li>
                
            </ul>
            
        
    </section>


    

    <script>
        new Vue({
            el: "section",
            data: {
                phone: "",
                mail: ""
            },
            methods: {

            },
            mounted(){
                let userInfo = localStorage.getItem('XGB-user')
                let id = JSON.parse(userInfo).id
                fetch(`https://fc-mp-e8e2bde5-0c0c-4622-87b5-66f8b08c3856.next.bspapp.com/edit_information/getMyPhone?id=${id}`)
                .then(res=>res.json())
                .then(res=>{
                    this.phone = res.phone
                    this.mail = res.mail
                })
            }
        })
    </script>
    
    

    <script>
        document.addEventListener('visibilitychange',
        function(){
            if(document.visibilityState === "visible"){
                setTimeout(()=>{
                    location.reload()
                }, 1000)
            }
        }
        )
    </script>
    
    <script>
        //根据设备宽度计算html的font-size
        function resetHtmlFont(){
            //获取html对象并动态设置font-size = 设备宽度的1/10
            document.documentElement.style.fontSize = screen.width/10 + 'px';
        }
        //执行一下
        resetHtmlFont();
        //如果窗口大小改变了，则重新计算基础font-size
        window.onresize = resetHtmlFont;
    </script>
</body>
</html>